namespace ColladaDotNet.OpenTKMapping
{
	public class GeometryCollection:CollectionWithIds<Geometry>
	{
		private readonly Document document;

		public GeometryCollection(Document document)
		{
			this.document = document;
		}
		protected override string GetIdOf(Geometry item)
		{
			return item.Id;
		}
		public override void Add(Geometry item)
		{
			item.Document = document;
			base.Add(item);
		}
		public void Add(geometry visual_scene)
		{
			string id = visual_scene.GetId();
			var res = new Geometry();
			res.Load(visual_scene);
			Add(res);
		}
	}
}